package edu.zjut.hjg.saas.biz.dao;

import java.util.List;

import edu.zjut.hjg.saas.biz.model.User;
import edu.zjut.hjg.saas.biz.support.RoleName;

/**
 * 用户数据库操作接口
 * 
 * @author hjg
 */
public interface UserDao {
    Integer create(User user);

    void update(User user);

    User loadNotDeleted(int id);

    User findByAppIdAndLoginId(int appId, String loginId);

    User findByIdAndAppId(int id, int appId);

    List<User> listByRoleNameAndAppId(RoleName roleName, int appId);

    public void deleteByIdAndAppId(int id, int appId);
}
